package org.jeecg.modules.demo.caiWuSkd.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.caiWuSkd.entity.CwSkd;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @Description: cw_skd
 * @Author: jeecg-boot
 * @Date:   2021-12-14
 * @Version: V1.0
 */
public interface ICwSkdService extends IService<CwSkd> {

    CwSkd getByskNo(String srNo);

    List<CwSkd> getBysoNo(String id);

    List<CwSkd> getYskBysoNo(String id);

    List<CwSkd> getByfpNo(String invoiceNo);
    public String getMaxCode();

    boolean addQcYskd(JSONObject jsonObject, HttpServletRequest req);
    boolean addYskd(JSONObject jsonObject, HttpServletRequest req);

    boolean addSkd(JSONObject jsonObject, HttpServletRequest req);

    Page<CwSkd> getList(Page<CwSkd> page, QueryWrapper<CwSkd> queryWrapper);


    boolean edit(CwSkd cwSkd);

    boolean addQcSkd(JSONObject jsonObject, HttpServletRequest req);

    Map<String,Double> getYskBytradecode(String tradecode);
}
